package com.iot.generation;


import com.iot.generation.build.TemplateBuilder;
import com.google.common.collect.Lists;

import java.util.List;

public class GenerationCodeApplication {

    public static void main(String[] args) throws Exception {
        List<String> tableName = Lists.newArrayList();
        tableName.add("tb_electronic_fence_record"); //表名集合

        //将代码生成至项目中
        TemplateBuilder.builder(
                "jdbc:mysql://1.15.173.234/szxrkj" ,
                "root",
                "denghang@888",
                tableName,
                "",
                "dh",
                1); //0-只生成mapper,1-生成所有代码,2-生成service+mapper

    }
}